package com.Stash.Config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration // 配置核心bean
@ComponentScan({"com.Stash.Controller", "com.Stash.Filter", "com.Stash.Config", "com.Stash.Listener"})   // 扫描bean
//@ServletComponentScan
//@EnableWebMvc   // MVC拦截器放行相关资源时使用，前后端分离项目可删除此注解
@EnableWebMvc
//@Import(MVCFilterConfig.class)
public class SpringMvcConfig implements WebMvcConfigurer {
}
